package cn.kgc.mapper;

import cn.kgc.bean.dto.CollectionDto;
import cn.kgc.bean.pojo.CCaseCollection;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectionMapper {
    //查询被收藏案例
    List<CollectionDto> getConllection(@Param("userId")Integer userId,
                                       @Param("caseName")String caseName,
                                       @Param("num")String num,
                                       @Param("undertaker")String undertaker);

    /**
     * 取消收藏
     * @return
     */
    int deleteInfo(@Param("userid") int userid,@Param("caseid")int caseId);

    /**
     * 添加收藏
     * @param cCaseCollection
     * @return
     */
    int addInfo(CCaseCollection cCaseCollection);
}
